<template>
	<view class="container">
		<!-- 顶部栏 -->
		
		<view class="background-img">
			<view class="main">
				<nav-bar :idx="0"></nav-bar>
				<view class="primary">
					<view class="left-content">
						<tagList></tagList>
					</view>
					<view class="mid-content">
						<view class="swiper-container" :class="{swpieror:isswiper}">
							<swiper :indicator-dots="true" :autoplay="true" :interval="3000" class="swiper-item">
								<swiper-item v-for="(item,index) in swiperList" :key="index">
									<img :src="item.url"  mode="aspectFill" alt="" class="swiper-img"/>
								</swiper-item>
							</swiper>
						</view>
						<contentComponent></contentComponent>
						<contentComponent></contentComponent>
						<contentComponent></contentComponent>
						<contentComponent></contentComponent>
					</view>
					<view class="right-content">
						<aList></aList>
					</view>
				</view>
			</view>
			
		</view>
		
	</view>
</template>

<script>
	import content from '@/components/content/content.vue'
	import aList from '@/components/a-list/a-list.vue'
	import tagList from '@/components/left-content/left-content.vue'
	import navBar from '@/components/nav-bar/nav-bar.vue'
	export default {
		components:{
			contentComponent: content, 
			aList,
			tagList,
			navBar
		},
		data() {
			return {
				swiperList:[
					{url:'/static/swiper/1.png'},
					{url:'/static/swiper/2.png'}
				],
				title: 'Hello',
				isswiper:false,//控制轮播图
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style>
	.container{
		height: auto;
	}
	.background-img
	{
		background-image: url(/static/background.png);
		background-repeat: repeat-y;
		background-size: 100% auto;
		height: auto;
		position: relative;
	}
	.main
	{
		/* display: none; */
	}
	.swiper-container
	{
		width: 100%; 
		margin: 0 auto;
		height: 800rpx;
	}
	.swiper-item
	{
		height: 100%;
	}
	.swiper-img
	{
		width: 100%;
		height: 100%;
	}
	.category_bar
	{
		display: flex;
		padding-left: 400rpx;
	}
	.top
	{
		display: flex;
	}
	.img1{
		padding: 12rpx 20rpx 0 600rpx;
		height: 100rpx;
		width: 100rpx;
	}
	.swpieror
	{
		display: none;
	}
	.img2
	{
		height: 100rpx;
		width: 100rpx;
	}
	.img_logo{
		height: 50%;
		width: 50%;
	}
	.push_right
	{
		 margin-left: auto;
	}
	.index
	{
		padding-top: 10rpx;
		padding-left: 100rpx;
		font-size: 42rpx;
	}
	.primary
	{
		display: flex;
		padding: 50rpx 20rpx 0 20rpx;
		min-height: 1500rpx;
		height: auto;
	}
	.left-content
	{
		width: 20%;
		margin-top: 5%;
		margin-right: 30rpx;
		height: 1400rpx;
		position: sticky;
		top: 10%;
	}
	.mid-content
	{
		width: 60%;
		margin-right: 30rpx;
		height: auto;
	}
	.right-content
	{
		width: 20%;
		margin-top: 5%;
		margin-left: auto;
		height: 1400rpx;
		position: sticky;
		top: 10%;
	}
	.content-container
	{
		padding-top: 10rpx;
		display: flex;
	}
	.content-img
	{
		padding-right: 20rpx;
		width: 50rpx;
		height: 50rpx;
	}
	.content-inner-img
	{
		height: 100%;
		width: 100%;
	}
	.main_content
	{
		padding: 80rpx;
	}
	.small_title
	{
		padding-top: 4rpx 0;
		color: gray;
		font-size: 24rpx;
	}
	.title
	{
		font-size: 40rpx;
		color: black;
		font-weight: 600;
		font-family: 'Courier New', Courier, monospace;
	}
	.time
	{
		padding-right: 100rpx;
	}
	.tag
	{
		height: 50rpx;
		width: 100rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: aliceblue;
		border-radius: 25rpx;
		font-size: 24rpx;
	}
</style>
